package com.cswangdao.mapper;

import com.cswangdao.domain.po.Region;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MarketRegionMapper {

    /**
     * @description: 根据地区类型查询地区信息列表
     * @param: type
     * @return:  List<Region>
     */
    @Select("select * from market_region where type = #{type} ")
    List<Region> getRegionsByType(@Param("type") byte type);
}